package wqh.pojo.api;

import wqh.domain.AlarmInComming;
import wqh.pojo.IPConver;

/**
 * Created by devts on 2016/12/7.
 */
public class AlarmIncommingAPIpojo {

    private Integer id;
    private String ip;
    private String dev_type;
    private Integer dev_addr;
    private String dev_status;
    private Integer alarm_time;

    public AlarmIncommingAPIpojo(){

    }

    public AlarmIncommingAPIpojo(AlarmInComming a){
        this.id = a.getId();
        this.ip = IPConver.int2Ip(a.getIp());
        this.dev_type = a.getDev_type();
        this.dev_addr = a.getDev_addr();
        this.dev_status = a.getDev_status();
        this.alarm_time = a.getAlarm_time();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getDev_type() {
        return dev_type;
    }

    public void setDev_type(String dev_type) {
        this.dev_type = dev_type;
    }

    public Integer getDev_addr() {
        return dev_addr;
    }

    public void setDev_addr(Integer dev_addr) {
        this.dev_addr = dev_addr;
    }

    public String getDev_status() {
        return dev_status;
    }

    public void setDev_status(String dev_status) {
        this.dev_status = dev_status;
    }

    public Integer getAlarm_time() {
        return alarm_time;
    }

    public void setAlarm_time(Integer alarm_time) {
        this.alarm_time = alarm_time;
    }

    @Override
    public String toString() {
        return "AlarmIncommingAPIpojo{" +
                "id=" + id +
                ", ip='" + ip + '\'' +
                ", dev_type='" + dev_type + '\'' +
                ", dev_addr=" + dev_addr +
                ", dev_status='" + dev_status + '\'' +
                ", alarm_time=" + alarm_time +
                '}';
    }
}
